import layout from "@/layout"

const menuRouter= [
    {
        path: "",
        name: "",
        component: layout,
        redirect: "/home",
        children: [
            {
                path: "/home",
                name: "home",
                component: () => import("@/views/home"),
            },
        ],
    },
    {
        path: "/components",
        name: "components",
        component: layout,
        children: [
            {
                path: "tablePage",
                name: "tablePage",
                component: () => import("@/views/tablePage"),
            }
        ],
    },
    {
        path: "/other",
        name: "other",
        component: layout,
        children: [
            {
                path: "lazyLoad",
                name: "lazyLoad",
                component: () => import("@/views/lazyLoad"),
            },
            {
                path: "dynamicForm",
                name: "dynamicForm",
                component: () => import("@/views/dynamicForm"),
            }
        ],
    },
]

export default menuRouter;
